package PhaseoneModuletwo.TheThirdQuestion.code;

/**
 * （3）上网套餐类 特征：上网流量、每月资费 行为：显示所有套餐信息
 */
public class InterServiceImpl  implements InterService{

    private String flow;

    public InterServiceImpl() {
    }

    public InterServiceImpl(String flow) {
        this.flow = flow;
    }

    public String getFlow() {
        return flow;
    }

    public void setFlow(String flow) {
        this.flow = flow;
    }

    @Override
    public void show1(String flow, SIMCard simCard) {
        System.out.println("上网流量:"+flow+"\t每月资费："+simCard.getBalance());
    }
}
